When creating an offscreen context we need wglCreatePbufferARB to create a drawable. In non-background mode wglCreatePbufferARB would have been set by the main window creation code. But in background mode this is not the case so we need to create a dummy context using the screen window to init wglew properly.