put this in different words

The metaphor suggests that the shabby blanket is comforting like an embrace from a familiar companion.

The comparison implies that the worn blanket provides a sense of comfort similar to a hug from a close friend.