No GUI is baked into the kernel
Even XP rests atop a form of DOS. Vista was the first MS OS to completely rid itself of the last vestiges of DOC, and you could still boot to a command prompt if you wanted to. The new versions of MS's Server OS allows you to forgo the GUI altogether to reduce the attackable footprint of the OS. So no, the GUI is not built into the kernel.