I read in the github thread that one can use joplin-content instead, how would it be used in my case?
joplin-content can't currently be used for this without changes. At present, joplin-content://note-viewer/some/absolute/path/to/a/file can be used to load files from only allowlisted files/directories.