This PR adds support in CMakeLists.txt
for -DBUILD_GUI=qt6
to allow building against system-installed Qt6 libraries in distributions that are dropping support for Qt5 (such as Gentoo).
I specify Qt 6.2.4 as a minimum requirement based on the work in bitcoin/bitcoin#24798, but I do not know whether Bitcoin Core currently builds against such an old version of Qt6. I have successfully built v29.0rc2 against Qt 6.8.3.