The psychological reading
People say someone wears many hats, and the dream often uses the same idea. The hat you have on may show the role currently taking up your energy. A hat that fits well suggests comfort with your position.
One that is too big or too small hints that the role does not suit you. Taking a hat off can mean dropping a pretense or showing respect.