Sample that shows how to use the window API in an app to have a "singleton" window app.
The app keeps track of its window in the background page. If none exists, or if it's closed, it creates a new one. Otherwise it re-focuses the existing one via chrome.app.window.focus()
.