[NTG-context] useexternaldocument with custom file type