In a blender/food processor, chop 1/2 a small onion until very finely chopped.
Add sugar, salt, pepper and blend slightly.
Let sit on counter for 5 minutes to allow sugar to dissolve.
With machine on low, slowly add olive oil and process until smooth. (You can also use a whisk)
Stir in the poppy seeds and shake well.