Creates a window with OpenGL context