You could consider it adultery from Christian perspective
(paraphrase)for whoever so much as looks at a women with lust in his heart has committed adultery with her(/paraphrase)
further, dream characters are real on a more fundamental level than mere imagination, they are a virtual reality simulation
fundamentally further one may deliberately seek out certain consorts in the mirror image of people they know in waking life, and have sex with them in lucidity, juxtaposed to any relation they have with being celibate or amorous or inbetween with any partners they may have in waking reality.
Followers of Hinduism in regards to Baghvad Gita and deovtional service to Lord Krsna are not allowed to have sex even in their dreams, and are to constantly focus upon God.
Then there is the very real possibility of shared dream and astral journeys in which we really are having sex with real people, in ways.
I had become politically powerful last night and a woman named Gina who knew me admired my courage, she was sleeping on the floor and as I walked by to prepare for a debate of some kind on TV, she grabbed me by the arm, said i had lost 5 pounds, which is not true, [people think i’m too skinny], then I asked her if I knew her, and what her name was
she said of course you know me! and i woke up. and i held her last sentence in my mind for far too long (at least 7 minutes) and finally was allowed to go back, and she said she was Gina, the best idea my mind could come up with
she turned into a tiny sky blue blob which morphed into a very skinny super-hero or perhaps villain like the Joker’s prettyful assistant in the old Batman cartoons, and
the exchange between us didn’t exactly work. they rarely do.
I liked her while she was human though, she looked familiar.