set window.__nwWindowId in Window.open()

Fix #1519