During a gut renovation, windows should be replaced when the wall is structurally sound before installing drywall.