A closet in a dream can represent something that has been hidden in your life. It can represent an aspect of yourself that you have not accepted or that you have not developed or a painful memory or emotion that you have not felt strong enough to face.
Because you keep your clothes in a closet, a closet in a dream can symbolize the different roles that you play in life.
If you dream that you are locked in a closet, you could be feeling trapped in a role that does not suit you.
A dream that you are arranging clothes in a closet can mean that you are thinking about how you would like others to see you.
If you dream that you walk through a closet door, and you find yourself in a large room, or you find yourself outdoors, it can mean that you are seeking new opportunities and new challenges.