Been training MMA, boxing, Muay Thai for a couple years.
I feel like leaning is an extension of hip flexibility, power and (for lack of a better word) snappiness.
Great dodge is a combination of: head movement, footwork and the hip lean that you seem to be describing. I think that it all comes together.
Moving your head out of the way seems like a head ...