I suppose there is no way yet to make this possible.
Microsoft has removed the Tablet mode from Windows 11. The feature is no longer available in Windows 11.Instead, Windows 11 will automatically optimize the UI for touch when you detach the keyboard from your device.
Under "Feature deprecations and removals" the Tablet mode is removed and new functionality and capability is included for keyboard attach and detach postures.
--If the reply is helpful, please Upvote and Accept it as an answer--