WebGLRenderer: Use self instead of window. (#23686)
* WebGLAnimation: use global request/cancelAnimationFrame if window context is not available (OffscreenCanvas)
* Use self instead of window
- revert WebGLAnimation changes
Co-authored-by: Bernd Meyer <bernd.meyer@hexagon.com>