In 1-2 sentences, explain the meaning of the metaphor in the following sentence.

The shabby blanket that wrapped around me was a warm hug from an old friend

The metaphor compares the shabby blanket to a warm hug from an old friend.