Merge "Add an API to listen for window attach/detach events on a View."