Overlay shouldDismissOverlay delegate

Adds delegate method `shouldDismissOverlay` to the overlay. Succeeds #1246.