Animals in general (well at least based on cats and dogs) have some interesting sleeping positions, and Ray has entertained us many times with his “collection”. This is a new one however, and one can only guess as to what the appeal was!
Did he see something on the carpet, perhaps a tiny morsel of something potentially edible, and went to sleep thinking about it? Perhaps there is some security in wedging his nose between his front legs? If dogs could talk!