Load External CSS Stylesheet with WebAssetManager
Registers and enqueues external or local CSS files into the document head using Joomla 5 and 6 WebAssetManager.
<?php
declare(strict_types=1);
use Joomla\CMS\Factory;
$wa = Factory::getApplication()->getDocument()->getWebAssetManager();
// ...