How create non-euclidian room?

Hi, I’m trying to do an effect where I have a box that represent a room and it is visible just from the inside or when seeing from it’s door.
I guess the effect is similar to non-euclidian geometry but since godot doesn’t has support for stencil buffer I don’t know how to achieve this effect. Could someone please lend me a help?