This feature would be really nice; one that I find very interesting in Age of Empires II. It should apply to all units, even those that normally have (or used to have) defensive stance by default, such as scouts.
Age of Mythology have it as well!
Nice game. Hoping for a Definitive Edition and new expansions