How do hangars work?

A ship automatically unloads cargo when a pilot is assigned to it, which can also give specific boosts to a ship.

Every few levels, there is a bonus level that increases the overall production of a hangar.

How does it look like?