GDK is open-source (https://github.com/microsoft/gdk), but to be fair there is a possibility that there are some parts under NDA.