Ghost does very little for the UI, it deals with the platform specific bits like creating windows, dealing with the mouse/keyboard/tablet input, locations for user preferences and creating an OpenGL context.
Once that context exists the platform independent code in source/blender/editors/interface does the actual drawing.