Hi Trishla T,
You could use the Show file in browser option from the File Manager Mendix widget.
If you need to visualize specific file extensions such as PDF, please check the Mendix Marketplace to see if something fits the specified extension, as I don't think there's something like an universal file viewer.
I hope that helps you with your question, best regards!