How interchangeable are fats in yeast bread recipes?
If you're the type of person who measures all your ingredients on a gram scale, theoretically you do.

However, unless the fat in the recipe is on the order of 1/2 cup, the amount of omitted water is going to be less than the amount of variance in water you get from uncontrollable sources, such as the ambient humidity.  There's also that you never know exactly how much water is in that generic unsalted butter to begin with.  American butter varies between 11% and 18% for water content, not just between brands, but also by season and year as the price and quality of cream fluctuates.  Not only do you not actually know how much water content is in your butter, you don't know how much was in the cookbook author's butter (also, some cheaper brands of ghee, such as the one sold at Trader Joe's, are not actually water-free).

If we were to assume that a recipe called for 200g of unsalted American butter, then you'd theoretically want assume an average water content of 15%, and swap that for, say, 170g of oil and 30g (roughly 2 Tbs) of water.

But my practical advice is "add a couple extra teaspoons of water and see how it comes together".