Here's my sting at a clip for storing the Apple Pencil on the outside of my folding cover. The holder sticks to the magnets on the cover of my case. Fortunately it sticks equally well to the right edge of the screen itself.
In addition to this thing you will need neodymium magnets such the these screw mounted magnets from Clas Ohlson (10mm diameter, 2.2mm thick, 3.9mm hole) that I used. With the center hole and the corresponding pin in the thing, the magnets stick in place without any glue.
I printed my proto from standard PLA and I was surprised how well it works. I will probably print it again from PETG to get better flexibility and durability.
Apple_Pencil_magnetic_clip.stl | 279.6KB |