Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
I tried it as described, ofc... However only black screen was shared, with visible mouse cursor moving on it...When compiling with flatpak-builder, I was asked for org.kde.Sdk and org.kde.Platform pre-requisities so I assumed it is KDE-only solution,...
It is probably KDE only solution.However, after applying env as you wrote "share" button is shown and it looks as I am able to share applications' windows.Even when still not able to share any of screens, this looks to be partial-temporary solution...