Harnessing Webpage UIs for Text-Rich Visual Understanding