Drag the plane/points/rectangle to move or change their size

Thank you.
Now that I am creating rectange and plane, using viewer.entities.There is one way to set a length of the plane in the function. But would it also possible to change the length of the plane by dragging the shape?

If the manipulation above is not possible to do, I would like to change the length using the bar in the screen. Are there any functions regarding this manipulation of the shapes?