You can first draw a rectangle with the appropriate width and depth and explode it into its segments. Then select the top and bottom segments and rebuild them with more control points. You can then join the segments back into a polycurve and use some of its new control points to alter it.