What does it have to do with the story? If it's not relevant to the plot it's just gratuitous, same as any other sex thrown into the mix. If it's the center of the plot, it's pandering.
If they have to ask themselves "where can we fit a gay dude?" then they are probably trying too hard.
"Are you out of your Vulcan mind?"