Hi Nishant,
If you want to close the popup after some time, you need to go for TIMEDTIRGGER ui element.
Create a timedTrigger element inside popup view and set the notification time and in the event of timed trigger, try to close the popup window.
I dont think we have any provision to control the popup based on cursor position, as atleast ENTER key to be hit to trigger an event.
Regards,
Rama