Hanger and Hangar are nouns that sound the same but have different meanings.
Hanger: a device used to suspend or hang something, typically tubular in shape and made of plastic, wood, or wire material. It can come in various shapes and sizes depending on the needs of the user.
Hangar: A large shed or indoor area used to shelter or store aircraft, such as airplanes or helicopters.
It is easy to remember the difference because the -er ending on hanger indicates someone or something that does something, as in driver and player.
A hanger could be any object used to hang things (to make things stay up in the air or on a wall), such as the triangle-shaped thing used to hang clothing (a clothes hanger) and the baskets used to hang plants. A hanger can also be a person who hangs things, professionally, such as windows and some other parts of buildings.
In contrast, a hangar is a garage for flying vehicles (planes, helicopters, rockets, etc.). Hangars look like this:
The word refers to the type of building, not necessarily what you do with it. Therefore, if you store a plane in your basement, your basement does not become a hangar.