At the time, he delivered the best climbing performances of the era in that Tour on Granon and Hautacam. I see no reason to assume that he would be chained to Rogla and not allowed to attack Pogi in yellow.Possibly,.
But even then for what we know Roglic and Vingegaard had an equal status back in TdF 2022. One could even say Roglic was the de-facto leader. So if Roglic isn't much weaker than Pogacar, the Tour is very different and Vingegaard EVENTUALLY doesn't get the chance to show he is the strongest.