Hijab is not a precondition for the acceptance of du'a. However, anything we do with a sincere intention for the sake of Allah should, God willing, bring us closer to Allah.
However it does not guarantee acceptance of a specific du'a, especially since some things are kept from us because it is in our best interest, there is some wisdom behind it, or we are meant to follow a different path in life.