The closet in your dream may have emotional, psychological, or physical connotations.
Closets are used to store good things that we need as well as useless stuff.
Emotionally they hold memories, secrets, precious emotions and valuable thoughts.
Consider all of the details in your dream and try to see the message clearly.
Do you need to clean out the closet, come out of the closet, or share the things that you have stored in that closet?