Prevent Compose from destroying foreign surfaces