How to change dimensions of existing rectangle?

Another way: when you start dragging the edge simply type your desired number and hit enter. Keep your eyes on the Measurement Box (lower right corner), the numbers get registered there.