Rendering to a 2d canvas while XR is enabled

For future spelunkers who might discover this thread, here’s the trick I used to get in-VR previews working in r127 in my animation loop:

    // Render the scene in WebXR
    renderer.render(this.scene, this.camera);

    // Re-Render the scene, but this time to the canvas (don't do this on Mobile!)
    if (renderer.xr.isPresenting) {
        renderer.xr.enabled = false;
        let oldFramebuffer = renderer._framebuffer;
        renderer.state.bindXRFramebuffer( null );
        //renderer.setRenderTarget( renderer.getRenderTarget() ); // Hack #15830 - Unneeded?
        renderer.render(scene, camera);
        renderer.xr.enabled = true;
        renderer.state.bindXRFramebuffer(oldFramebuffer);
    }

It would be nice if some of the examples could show this off (or if three.js could integrate it as a more standard feature).