Using the same general idea, you could do this on any aspect ratio image by making a square selection centered on the image, and use Select > Transform Selection to rotate 45° and scale for the desired amount of cut, and then use the result as a Layer Mask.