PencilKit PKToolPicker add tools or get height

on iOS, I want to add up undo/redo and a close button. On ipadOS, I only need to add a close button

What’s your experience in adding a close button to the ToolPicker? Or at least have the position of the window so I can add an overlapping box (even on floating).