Incorrect use of PARENT_SCOPE meant the vars would be used uninitialized elsewhere.
https://developer.blender.org/D643 Separates graphics context creation from window code in Ghost so that they can vary separately.