Add dismissOnExternalInteraction property

This is cherry picked from the modal-overlay pull request https://github.com/montagejs/montage/pull/1221