This should not be mixed with "capture" concept. It is already hard to make capture consistent across platforms (win/x11/macos) and this would add another level of complication.
What we need instead IMO is to encapsulate platform specific apis like warp.