The screencast portal supports recording a single window, and presents a list of open windows when that option is selected. To allow updating that list when windows are opened or closed, add a new "WindowsChanged" signal that the portal can listen to.
Fixes #17 (closed) Needs gnome-shell!2229 (merged)