There are two widgets you need to check out:
Native file documents https://marketplace.mendix.com/link/component/114252
And there is a brand new one and I am not sure if it also works native.
Universal File Viewer https://marketplace.mendix.com/link/component/116935
Have not yet time to test that latest one to check if it works also natively.