Global transform should be correct after attaching a detached tree.
#if *_ENABLED
CodeEdit
Node2D
Control