Implement nativeResourceForContext() to get EGL context

Make it possible to get the EGL context from the QOpenGLContext handle.