Simple implementation of a modal dialog that can be used as a non-direct replacement to the deprecated window.showModelDialog() API