Actually, it seems to be possible. Since Nextcloud is hosted on my local network (raspberrypi) I don’t have to worry much about other people downloading my files.
That being said, I can just go to 192.168.1.12/nextcloud/data/<username>/files/<pathToFile> and it will open it.
E.g.
and it works on php and HTML files, too.

