The VOIDRUNNER'S CODEX is LIVE! Explore new worlds, fight oppressive empires, fend off fearsome aliens, and wield deadly psionics with this comprehensive boxed set expansion for 5E and A5E!
I remember Teleportation Field from previous editions doing something similar, but what you're looking for was already stated by anest1s. Greater Dimension Door from Spell Compendium.