createPortalTarget (target, tag) {
      if (!canUseDOM) {
        return
      }
      const existingPortalElement = document.querySelector(target)

      if (existingPortalElement) {
        return existingPortalElement
      } else {
        const el = document.createElement(tag)
        if (target.startsWith('#')) {
          el.id = gs(target, '#')
        }
        if (target.startsWith('.')) {
          el.classList.add(gs(target, '.'))
          el.id = useId(4)
        }
        if (document.body != null) {
          document.body.appendChild(el)
        }
        return el
      }
    }
@description Creates portal target node. If node doesn't exist, it is created and returned
@param {String} target
@returns {HTMLElement}