If you want a non-slip surface on a painted area, mask off the area you want, paint it, then sprinkle sand over it. When dry, brush off any loose stuff, then paint another thin coat over the top!

Before you do, it’s worth spreading the sand on a baking tray and putting it in the oven for a while to dry and bake it to remove any moisture.