datepicker: Use the ownerDocument to find the picker in the event handlers. Fixed #9491 - DatePicker does not use the correct ownerDocument (does not support multiple windows)