Smart dimmer: neutral, ground and copper wire capped together
If  and only if the dimmer's instructions say so
Bootlegging neutral off ground is not allowed, no.
However, a small number of dimmers are made to do that.  The instructions say to use ground for neutral if neutral is not available; otherwise they want you to use neutral.  This method has been approved by UL, and they approved the instructions as part of that.