It happened to me once, when I was the first time user.
Ideally, you want the whole roof assembly to pivot out of the compartment. Once you clear the softop compartment lid, you want to get the lid down and secured. From thereon is easy.
If you get stuck, much like your picture shows, I notice it helps to put the soft top back into the compartment and try slowly to pivot it out of the compartment. It may require some force, but the frame is flexible enough to come out of there.