Support creating new files and opening new windows