You must draw four lines. Not one polyline.
Watch this:
The opposite lines must have the same number of vertexes:
Then select the four lines. It's all the same what selction mode you use.(Group,vertex...). And click Polyfromlines/Create polygon
That's all.