Sorry this does not help. The pin does not work every time and the banner remains long after the device is disconnected. This banner is completely useless and must be exterminated by Microsoft.
It's easy to know when a device is disconnected, There is No projection!
Please fix this annoying situation.