In order to provide an explanation, the entire sentence should be provided.
The shabby blanket that wrapped around me felt like a warm hug from an old friend
In this sentence, the metaphor is comparing the shabby blanket to a warm hug from an old friend. The meaning behind this metaphor is that despite the blanket being worn and shabby, it still provides comfort and warmth, much like the feeling of being embraced by an old friend who offers familiar comfort and support. It conveys a sense of familiarity, comfort, and emotional warmth despite the physical appearance of the object being described.
write it like a 4th grader and make it short
The old, raggedy blanket felt like a big hug from a friend, keeping me warm and cozy.