$file = $window->getOpenFile(-filetypes => \@types);