If you installed AlmaLinux without GUI but now need GUI because of GUI required applications and so on, Install Desktop Environment like follows:
https://www.server-world.info/en/note?os=AlmaLinux_9&p=desktop
install desktop
dnf -y group install "Server with GUI"
start x windows
startx