[[ Cocoa ]] Implemented snapshot of window.