Slide in on exit intent or close browser

I would like to understand how can this slide in be triggered on exit intent or browser close option.

I know that this is present in popup plugin. However, need to know how this can be accomplished

Thanks