It symbolizes something related to the ideas or behavior of the dreamer. Seeing hats but not wearing them, announces that you need to take some precautions. Wearing a hat, without wanting to take it off, means that youre trying to keep a secret that you dont want to share. Dreaming of wearing a ridiculous hat, could be a warning of some personal attitude that others see as ridiculous but we do not realize that we have it.
Read more about dreaming of Hat in other dream meanings interpretations.