It's easy. People mention being part of various LGBT groups on their resumes, or they put rainbow flags on their social media.
Sexual orientation is actually very visible these days.
Staffing agencies even have facets in their CRMs/spreadsheets list/search system to quickly identify candidates.