Capturing the work to setup the gl window.