The head-bobbing threat display is used by many kinds of lizards, mostly unrelated to each other, all over the world. I call that a mystery.
Here a young bearded dragon is trying to show a plastic doll who’s boss. He pays no attention to the cat until the cat pays attention to him. [Note: Human standing by to make sure no one gets bitten.]