Draw a rectangle in a diagram, plot2d won't let you plot a function of $y$.
qdraw(xrange(0,10), yrange(0,10), rect(0,0,2,4,lc([line_color]), lw([line_thickness]),fill([fill_color])))
The last 3 arguments are optional with default of blue, 3, no color
Edit:
If you have some set of with the boundaries of $f_1(x),f_2(x),...,f_n(x)$ you had the right way of thinking, plot the functions and fill the area between them, the problem is that you can only plot functions of $x$, and the sides, $y\in [0,4]$, are a functions of $y$, not of $x$. So you draw a line instead of plot a function, in this case we can just take rectangle over that region.