Maybe useful to someone out there, but the documentation for using dwarflib on Windows and for PE files is pretty scarce so I made a ready to use lib one could integrate to their project to use it. You can find it here:

https://github.com/blaquee/DwarfPeParse

It comes with the example usage:
https://github.com/blaquee/DwarfPeParse/blob/master/DwarfPeParse/DwarfPeParse.cpp

you just need to add the folders in the thirdparty folder into your project and include:
#include <libdwarf/dwarf_incl.h>