Plastidip isn't a durable product with concerns to adhesion. It can be fairly easily peeled away.
With something like your trim I would use an epoxy style repair. It will require prepping of the surface and the use of an adhesion promoter as well.
It'll be somewhat difficult to do the repair while the glass is mounted to the vehicle. The issue would be an accidental bonding with the vehicle.
If you were wanting to just fill pitting it would have been a simple task of masking the trim, prepping the surface, using adhesion promoter and applying the product.
The epoxy will need to be sanded smooth after it hardens.