docs: public EGLSurface createWindowSurface(Object surface) {
          if (!(surface instanceof Surface) && !(surface instanceof SurfaceTexture)) {
              throw new RuntimeException("invalid surface: " + surface);
          }
  
          // Create a window surface, and attach it to the Surface we received.
          int[] surfaceAttribs = {
                  EGL14.EGL_NONE
          };
          EGLSurface eglSurface = EGL14.eglCreateWindowSurface(mEGLDisplay, mEGLConfig, surface,
                  surfaceAttribs, 0);
          checkEglError("eglCreateWindowSurface");
          if (eglSurface == null) {
              throw new RuntimeException("surface was null");
          }
          return eglSurface;
      }