untested code to make gl context and raise the window