This particular set is made in the free-form crochet style: there is no exact pattern to crochet from, instead you crochet in an iterative process alternating between crocheting and trying the hat on for size and pattern adaptations.
Disclaimer: It is of course not a functioning device but it works well as a gift for someone you miss or someone who misses another person madly as it provides an opportunity to take some kind of action when ordinary options like driving, jetting or biking are not feasible even if the action is only symbolic.
Step 1: Find yarn and crochet needle
Also find a crochet needle that matches the yarn. If given a choice in size, opt for the largest one in the spectrum of the yarn's abilities as the hat will be more adaptable to the wearer's head if crocheted in a loose manner.