Voldemort's awkward hug of Draco Malfoy was largely due to improvisation by actor Ralph Fiennes, meant to be unsettling and uncomfortable.
According to Tom Felton's memoir, Fiennes spontaneously decided to hug Draco in that bizarre fashion during filming. Felton described the experience as deeply unsettling, both in the moment and in retrospect. The hug aimed to convey Voldemort's lack of genuine affection and his general discomfort with physical contact, even with someone he ostensibly valued (for his family's allegiance, not for Draco himself).
In essence, the "weirdness" was a deliberate artistic choice by Fiennes, effectively capturing Voldemort's character. It highlights Voldemort's inability to express genuine human emotion and further emphasizes the chilling and manipulative nature of the character.