Synchronize ModelingUtils.fileDialog() to UI thread.