Use item info provided by FileChooser. Also fix showing PathChooser with invalid path, and fix issue when opening non-supported files.