isUserInterfaceEnabled

Indicates whether UI is enabled right now. UI is disabled when document is being saved/loaded.