I just saw the source code and the docs. It's weird they don't cite this function where it should. I'll try tonight and add a comment then. Thanks for the tip :)
Edit: Ok, I got it. The function is a member of MainLoop (which SceneTree inherits). That's why I couldn't find the function in the docs (I was looking at the wrong docs). Again, thanks for the tip :D