Legal validity does not mean that every valid manner is equally appropriate in etiquette. The discussion of prayer on the roof also considers reverence for the Sacred House.
The source rule “the prayer is valid” addresses validity. Considering an undignified manner disliked does not contradict that judgment.