I would worry about what Carlos said, with pathogens being easier to spread. I'm sure it can be done safely but sounds like a lot of trouble.
lol, if you do it definitely make sure they can't see each other. Trevor can see one of my baby garters through her tank and reacts to him all the time (I think it's the frog equivalent of a cat watching a bird-feeder... And the snake seems blissfully unaware of it all).