Track dock window lifetime

Track a dock window's lifetime and notify the content of the dock window
of changes.
Unique window names and count limiting.
Added test open properties window menu.