Lock docking/margin

I know you can just hold command but thought a little lock feature for docking/margins would be neat. I know it’s probably miles off as there’s other priorities but this would be great!