If you are opening a generic file extension, then drag the file to the application that is used for opening that type of file. In case you are opening a text file, you can simply open it in a text editor.