Does WebGL.Stencil work in Three.js/editor?

I’m trying to create a scene with a portal in the three editor.js, but I can’t do it. I have a suspicion of a problem with WebGL, namely with Stencil. Is Stencil supported in the editor, or could the problem be in another one? And by the way, this scene works perfectly on a simple three.js, not in the editor, but in the editor is already a problem. The code from the project is here: https://stackoverflow.com/questions/66444471/how-to-access-camera-three-js-editor