How can I assign an action on backdrop click?

How can I assign an action on backdrop click?