Probably due to missing proper terms to search for, I have never been able to figure out more about something I saw on TV a long time ago (80s, maybe early 90s).
All that I can remember is roughly the key idea of the "magic" that is happening: (completely made up to illustrate the principle, unfortunately can't remember an actual scene). When you walk a special path, a door or pathway will suddenly lead to a different place (or maybe different reality). Like when you walk through a gate, then from 4 trees between tree 3 and 4, and then around a lamp post not directly in your path, opening a door will suddenly lead to a beach instead of the bar it should normally enter.
I am mostly fascinated by this world mechanics, so if that TV show was based on a book, or short story, I would like to know that too.
Not having read yet through all great ideas in the comments (even if not what I was looking for its good for ideas how to spend more time with these stories), it seems that I didn't properly transport the key idea here, so I will try to clarify it.
While many mention simple portal doors etc. the way they are operated are a bit different. While in matrix (or also in lost room) the portal doors are operated by special keys, or in other stories they are just there, in my case they are activated by walking a special path in the world. Like if in the above case mentioned, you would walk the same path, but between tree 2 and 3, the door would lead into the bar. The special path is a way that people normally would not take.
Also I think that the story plays in contemporary (80s or 90s) north america or similar environment.