I've always felt that what Sisko did meets the legal definition of "rape by impersonation". Rare in the actual world but still defined and quite illegal. (A real world example would be sleeping with your twin brothers girl friend, her thinking that you're him.) Science fiction, with shape-shifters, alternate universes, mind swapping, etc has many more instances where this could occur. Then there's always that scene in "Revenge of the Nerds".