This is the beginning of a filepicker element that can be embedded in the application.
Initially this code was written for the Plasma Mobile xdg-desktop-portal, but it was requested to put it into a shared repository. I hope this one is the right place for it.
This way the xdg-desktop-portal, apps and a possible mobile support in plasma-integration could all use the same filepicker code.