This function returns
1 (true) if a modal dialog is currently displayed or the user interface is disabled, for example, by a call to the
disable_windows function.
This function may be useful in a timer or channel callback to delay or avoid processing if the user interface is blocked.