Remain working within component/group/frame

I’d like to have a way of selecting the group/frame/component I’m working in and staying inside that area when creating new elements (aka layers). Basically, the “layers” work in photoshop and most other design software, at least that I’ve seen. I wouldn’t want this to be the default, but this mode would be useful when creating new elements within components, for example.