If you have enough available storage on your system disk, you can set up dual booting to take macOS Sequoia for a spin. Here's a very good reference video:
https://www.youtube.com/watch?v=xzUPFeat9U4
Otherwise, one can use an external SSD or flash drive. Just remember to perform a TimeMachine backup before attempting any of these solutions.
Topic:
Developer Tools & Services
SubTopic:
Xcode