Merge "Add default selectRootForWindow function for target root id" into sc-dev