Can I make an object, so that when the characters touch it, they teleport to another part?

I want it to be able to teleport characters to the top of a tower in dnd 5e. Then they will fight their way through the tower. My idea is that they touch an object and teleport them there. Is this a thing, or is there a better way to do this?

Thanks for your help!