Remove code duplication between Confirm[Tooltip]Dialog and [Tooltip]Dialog.
Refs #16930, refs #13279.
Implement Tooltip hideDelay property.
Fixes #4284, fixes #8267.
Use pointerdown/MSPointerDown when available, fixes #17648.
Also doing some refactoring/cleanup.
avoid spurious test failure on chrome due to robot problem, fixes #17945