Hi,
We cannot control/raise events on windows buttons like back,close,minimize etc..So it is not possible to achieve your requirement.
A work-around will be create a custom button namely (Back) and you can raise popup as per your requirement.
Revert back if you require any help.
Thanks
KH