Like a thinking cap, a dickhead hat is an imaginary hat that you wear when being a dickhead.
Person #1: Jimmy just punched that guy Person #2: It looks like Jimmy has his dickhead hat on tonight