window: Add API to check for subcompositor, use in subsurface example

This way we can fail with a nice error message.
3 files changed