Guess it'll be public knowledge soon enough once the case files come out: the hat conceals his matter-phase distortion transformer device. It allows him to move between objects he wouldn't otherwise be able to fit through. You can see an effect of the field in this frame:
If you look really closely, you can see he's holding something, maybe a weapon of some sort?
Careful…