A man is standing in the doorway of a building.
A man is in a building.
The doorway of a building is always in the building.
Doorway of a building is part of a building.
A man is standing in a doorway, which is part of a building, so the man is standing in the building.