This will show an Overlay with a spinner to catch the users eyes. You can call this from anywhere in the app, be it from Dialogs, RScripts of a document, some other random event, this should work. Do not forget to call show: false
once you are done with your heavy time consuming task! :D