Here's why:
* Metaphor: A metaphor is a figure of speech that compares two unlike things directly, without using words like "like" or "as". In this case, a door is being compared to something friendly.
While a door itself cannot be friendly, the phrase implies that the door is welcoming, inviting, or safe, which are qualities associated with friendliness.
Let me know if you'd like more examples of metaphors!