In this case, the State does not "steal ownership" of the Behavior (you'll see it is still in the same place in the containment tree). Instead, a "wrapper" Behavior is created, that is owned by the state, and merely delegates to the original "external" Behavior.
Be especially wary of this when dealing with export to Modelica!
Compare with: