A smart object keeps layers together inside it, on a of their own. Choose a layer or group, then Convert to smart object in the Layer . Scale it, turn it and flip it as often as you like: it is drawn again from what is inside at whatever size it shows, so it never gets softer.
Edit contents (in the Layer panel) opens what is inside on its own. Change it as you would any file, crop it, add text or paint, then choose Done in the bar above the photo. The changes go back into the smart object as one step, which Undo can take back.
Adjustment layers added inside a smart object (Light & color, Curves, Levels, Looks and Liquify) change only that smart object, and stay editable: open its contents again to change or turn them off.
SVG files come in as smart objects holding the vector art: add one with Add › Photo…, drop it on the photo, or open it from Home. Vector art stays sharp at any size, also when exported.
Artboards sent from VectorCanvas come in as linked smart objects. When the artboard changes there, a bar above the photo offers Update (signed in with the same account). Updating keeps the size, place and anything you added inside. Unlink in the Layer panel stops the offers.