Hooks openDocument to folder picking dialog