This PR is based off of #18433.
createVueApp()that calls createApp and sets some globals so the globals are set in one place.
The UI tests should be passing for this PR
This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers