I’ve always taken that behavior (what they call closeting) to be an attempt by homosexuals to keep OTHER homosexuals from bothering them at work.
There can be “shunning” if a homosexual is discovered. It does change how people look at them as people. Not always but it happens.