Do this for compatibility with wxGenericProgressDialog, which always did this and can't really do otherwise as it needs to react to the clicks on its buttons, and also because not doing it results in the other application windows being marked as "not responding" by MSW, which looks bad. Closes #17768.