Fix #19931: Use native file dialog on windows and mac, and qt file dialog on unix