Sure you can do this in doom, or at least it can be done in modern source ports.
https://www.youtube.com/watch?v=Iq1-TZXz9xo (myhouse.wad)
There is nothing about the data structures ID choose to use in doom that prevent portal shenanigans. ID(John Carmack) just did not implement them.