How to display the content of a file?

I need to display the content of a file (rtfd or html) in a view, other than the main view.
I don’t need a document editable view.
I saw there’s a WKWebView method in WebKit but can’t understand how to make it appear in a window/panel.
:wink: