This is a polite way of saying that he had sex with another man. Some languages use more direct phrases such as "a man had sex with." (See: [[rc://en/ta/man/translate/figs-euphemism]])
The way he treats the man is the same way he would treat a woman. AT: "just like he would with a woman" (See: [[rc://en/ta/man/translate/figs-simile]])