A person wearing a hat sits in a store with coats and other articles of clothing hanging on the walls.
A person in a hat is in a department store.