use the preview window as the main window associated with the OpenGL context