"Shadow people" are probably hostile thoughtforms or elementals.
As for Hat Man, my aunt, when she was alone, she saw a black figure with a hat that opened the door. She was strongly frightened by it. But in this case it was a deceased family member who had recently died at the time.