1. To reveal one’s secret interests. To talk in public about something which you kept secret in the past because you were embarrassed about it.
Nobody was surprised when my cousin came out of the closet.
2. To reveal that one is gay.
Not all gays come out of the closet, either because they don’t want to.