Combine sugar and white wine vinegar in a bowl. Stir until sugar is completely dissolved.
Peel the shallot, grate and add to the bowl.
Add poppy seeds, salt, ground mustard and mix.
Beat dressing, pour in olive or grape oil.
Add mayonnaise if desired. Stir the dressing every time before serving.