How do I reuse/extend the Umbraco Content Picker in my own property editor?

hey warren,
i have added a comment on this topic maybe this helps u in some way, this one should do and is very simple. i am currently on holiday so i might not reply back… hope this helps

https://forum.umbraco.com/t/umbraco-15-custom-property-editors-how-to-content-picker-dialog-media-picker-dialog/4388/4 (check for document picker (content picker)

EDIT: eg code
import { UmbInputDocumentElement } from "@umbraco-cms/backoffice/document";

render:

 <umb-input-document
    .selection=${this.#selection}
    @change=${this.#onChangeDocument}>
</umb-input-document>

handler

 #onChangeDocument(event: CustomEvent & { target: UmbInputDocumentElement }) {
    this.showOnPages = event.target.selection?.join(',') ?? null;
    this.dispatchEvent(new UmbPropertyValueChangeEvent());
}

required backing property:

#selection: Array<string> = [];