Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
https://developer.blender.org/D643 Separates graphics context creation from window code in Ghost so that they can vary separately.