Heterogeneous Graph Structure Learning through the Lens of Data-generating Processes