Microsoft Teams is capable of opening files within the app. It will allow you to preview the content without launching it in a specific app. If that's now how it is working on your PC, then right-click on the file, expand the Open-in menu, and select Teams.  Click on the Change Default menu and select Teams to change the default behavior. If you want to open it in-app, you can always select the option available in the menu.