Dog defends office window against attack