Jesus had something to say about queer clergymen:
Mt 7:22 On that day many will say to me, ‘Lord, Lord, did we not prophesy in your name, and cast out demons in your name, and do many mighty works in your name?’
23 And then will I declare to them, ‘I never knew you; depart from me, you workers of lawlessness.’
A misapplication of the text but then I suspect you know that. Look at the verses that “bracket” that passage.
Not arguing the merits of openly living in sin as a pastor. Not my place to decide who’s qualified for a given congregation. Sexual immorality is talked about in the sermon on the mount. By that standard all fall short of being qualified.
Unless your arguing there are degrees of sin and all aren’t versions of the original sin to replace God with ourselves. Some denominations believe that.