How can I achieve this perspective?

Hi! I’ve had the idea of doing something like this for a while, but I haven’t really been sure how to achieve (if I even can). I have a room, and when you open the door, it leads outside. What I’m trying to do is, in a way, make it so that the room only exists when you’re inside of it if that makes sense. That way, if you walk outside and look back at the doors, you can only see the room from inside the door. I put together some images in photoshop to help get my idea across…

View from inside:

Here’s the view from outside as is:

What I want it to be:


Not even sure if I’m posting this to the right forum to be honest. Not super important, but I’m just kind of messing around and it’d be awesome to be able to use this in future projects. Thank you!

You’ll find a few tutorials on YouTube if you look for “portals”.

I did a little research and it’s actually looking really well! Thank you for the suggestion! The only issue I seem to be having is that the system requires 3 camera at a time in my scene, and it’s really affecting my game’s performance and framerate. Any suggestions as to how I could make my game run more smoothly with multiple cameras?