Is it possible to vertically loop a level?

What I’m talking about is a level where if you were to jump off of a cliff, after falling for a while you would pass the ledge you jumped off of again. For another example, if you were to shoot a rocket straight down, you could hit yourself in the back.

Like portal, but on the scale of an entire level rather than a set of portals.

I haven’t been able to find anything like this on a general Google search, and was wondering if it was possible.