File widget.xml

 1<source>
 2  <workbench id="Sketch">
 3    <group id="Linear geometry">
 4
 5      <!-- SketchRectangle (python feature) -->
 6      <feature
 7        id="SketchRectangle"
 8        title="Rectangle"
 9        tooltip="Create rectangle"
10        icon="icons/Addons/rectangle.png"
11        helpfile="rectangleFeature.html">
12        <sketch-2dpoint_selector id="RectStartPoint" accept_expressions="0" title="Start point" tooltip="Start point coordinates"
13                                 enable_value="enable_by_preferences"/>
14        <sketch-2dpoint_selector id="RectEndPoint" accept_expressions="0" title="End point" tooltip="End point coordinates"
15                                 enable_value="enable_by_preferences"/>
16        <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
17        <validator id="GeomValidators_Different" parameters="RectStartPoint,RectEndPoint"/>
18      </feature>
19
20    </group>
21  </workbench>
22</source>

Download this script