How to make a floating mesh rotate?
I found a solution.

Create two small cubes and add RigidBody to it. ( Delete rigid body on the hat).
Give two different mass to the cube.
Attached the two cubes with an "RigidBidy contrainst". And attach the hat to those cubes.

And it's work.