Help Understanding Virtual Device Dimmer

I haven’t done anything with ST in a couple years, I have seen the app is much better! I see in automations a virtual device dimmer. Seems any automation, code or process you use with a dimmer would provide the option to also set dimming. How is a virtual dimmer applied to set a device?