Files Field <k-files-field /> not working inside my custom field plugin

Maybe my topic here helps you, Tim: Using the pages dialog component in a plugin

I guess the endpoints for pages and files are similar. I must confess I don’t fully understand it myself — but Lukas’ suggestion worked for me.