This workflow starts with splitting the image into three depths: near, mid and far ranges. From there you can choose to inpaint by range, or detail and post-process by range. Or inpaint and then post-process.
All the instructions are in a note inside the workflow.