create Root Window Insets Wrapper
Create a WindowInsetsWrapper from View.getRootWindowInsets.
Please see WindowInsetsWrapper.from that why you may need the window parameter.
You can use View.handleOnWindowInsetsChanged to handle the insets change.
Receiver
Return
Parameters
window
the current window, default is null.
See also
handle On Window Insets Changed