Where and how should I use Composer and the drupal-composer/drupal-project scaffold to install the required libraries?
I use https://github.com/oomphinc/composer-installers-extender in my projects. It provides an composer installer for any package type.