Star Trek actually did that kind of thing a lot, except they used aliens to represent modern day or historical groups. The thing with homosexuals is there very well could have been some on the show, but it wouldnt really matter. They didnt have storylines for Uhura or Sulu to call out that they werent white, they were simply part of the crew. I think the only main characters that had those kinds of stories were Spock and Worf, but again, they were aliens. Spock was unique in that he dealt with racism more from humans than Vulcans or Romulans. That probably says something in itself. You can almost use Spock to represent any group. Its easier to use aliens for controversial topics because no one in real life can say FU for taking a stance.
And really, homosexuals characters on TV is a relatively recent thing. Its kinda surprising Start Trek wasnt the first to do it, but it probably illustrates how taboo is was. And I dont think homosexuals wanting representation on Star Trek is a PC thing, they just want to be included like everyone else. Most people dont think inclusion is a big deal unless they were the ones being excluded, even if it was unintentional.
I vaguely remember a TNG episode where the alien species were androgynous. I think they all looked like women, but they switched back and forth sexually depending on whats needed. I think Riker banged one. Doesnt really have anything to do with anything, just that I remembered it when thinking about instances of homosexuality in TNG.