Hi Ruth, yes you're right the dunnock is reacting to it's reflection in the mirror and the windows. I have seen same behaviour by a wren in the wing mirror of a motor bike; presume they are just territorial and protecting their patch.
Lot to learn