[MAINT] Add unit test for `OpenGLWindow`.

As the title says.