ENH: Fetch viewport size for the existing OpenGL context

Change-Id: Iea3c3018085925e656db0199b4009bd6feb34e84