update sample app to use NSWindow frame helpers