From Longman Dictionary of Contemporary Englishbe in the closetbe in the closetAmerican English informal to not tell people that you are homosexual →closet
Examples from the Corpus
be in the closet• We provide help for young people who are in the closet and are too scared to come out.