I added a comment to the ticket. The patch itself isn't bad, but the work-around it codifies causes an issue in Internet Explorer, which is the source of even needing the workaround in the first place. Unfortunately it's not reasonable to have a built-in option that would render the dialog as anything other than the topmost element. This is the design of the plugin.