Add app window icon changing to Window State Sample

This demonstrates the behavior added for https://crbug.com/390907 in https://codereview.chromium.org/411543009.
Do you mind updating that line to `var c = document.createElement('canvas');`