It may simply be that the men of Sodom wanted to find out who these strangers were and what they were doing in their town. After all, Lot was not native of Sodom. He, too, was an outsider. The townsfolk were not happy with his inviting strangers in. In the end there is no way of being absolutely certain if this was referring to homosexual acts or not.
Most experts believe that it does.
The text is concerned about abuse and rape, not simply about sex. Even Jesus understood the sin of Sodom as the sin of inhospitality. Other passages in the Bible come right out and say the same thing. Yet people continue to cite the story of Sodom to condemn gay Community. Such oppression is very sin of which the people of Sodom were guilty.