Idiom: Look what the cat dragged in

What does 'Look what the cat dragged in' mean?

This idiom is used when someone arrives somewhere looking a mess or flustered and bothered.

See also: