How sitting up helps treat pulmonary edema?

At night when the body it's in horizontal position the blood flow from legs and abdomen it's coming to the thorax. Because of this reason the some people whit cardiac insufficiency and secondary pulmonary collection will accentuate this conditions.
So you can't treat pulmonary edema by sitting up, but you can do this to not make it worse.