Independent solution, checked against the source construction. Use the trapezium described in the answer. Its long side AB spans 2 squares horizontally and 6 vertically, while BC and CD each span 3 and 1, so BC and CD are each half of AB. Side AD spans 4 and 2.
For EFGH, EF and HG each span 2 horizontally and 1 vertically, so each is half of AD. FG and EH each span 2 horizontally and 6 vertically, so each equals AB. Therefore perimeter of EFGH = 2 × AB + AD. The trapezium perimeter is AB + BC + CD + AD = 2 × AB + AD, exactly the same. Opposite sides of EFGH are parallel by construction.
Check using top-left-origin grid coordinates (right, down): E(9, 2), F(11, 1), G(13, 7), H(11, 8). These vertices lie inside the printed grid and to the right of the trapezium, so the interiors do not overlap. Do not compare sloping lengths by simply adding horizontal and vertical grid steps; the source tally of 22 grid steps is not a valid perimeter calculation.