I once was called out for refusing to meet with a woman behind closed doors alone.
But not by that person, someone else.
The lady on my team understood, and honestly felt it was best anyway (engineers are like that).
Yes, in the early 90's I heard stories of men in mgt in the then growing diversity / harrassment era of the consultants & HR being ever vigilant asking to have no women underlings and or take the door off their office towards the end of their careers, rather than being accused of something that was a would end it. With old fashion defined benefit plans still around at the time, to loose that top end of the bell curve of company contributions to that pension was too much risk....