FileChooser with saveMode and canSelectDirectories doesn't show

Posted the solution to the problem here