Automate open iPad as screen (sidecar) if there are no other screens detected

Is there a way to make it with the current tools?
If not, It'd be nice to have this feature for mac mini / studio so an iPad can be used as screens without the need of another screen to enable it.