1. Draw an arbitrary square, symmetric to the angle bisector of the central angle of the sector, with 2 vertices placed on the legs of the central angle. See attachment: The red square.

2. Use central dilation(?) to get the final result: The blue square.

3. In my opinion this method should work with every central angle.