Generate IDs for each window and get window by id

The window is storing the id in the window.id property.

[VDI-1982]