How do I make a mesh invisible from the outside but visible from the inside if looked at it from a specific angle

So basically I need a cube or a sphere which is invisible if looked at from outside. But when you look at it from a specific angle it should be possible to see the inside.

Maybe this helps to visualize

242784-123.jpg

Altough in this picture they used a parallax effect on a plane which I can’t use because I need the actual space inside of my mesh.
The important part is, if I’d look at it from left, right, top or bottom I should just see through it. The only way to see anything would be looking at it from front.

I have no idea how to accomplish this so any help would be appreciated.

I’m not sure if it’s what your going for, but you could invert the normals to get a similar effect.
or you could do something like a portal effect: UE4 Tutorial: How To Build A Seamless Unreal Portal Door - YouTube