For example, like google drive. Google drive is developed using wxPython, which means there is such a possibility Screenshot from Google Drive Ideas using Bitmap and DC come to mind, but I would like a more beautiful solution.
I would like to get an idea on how to implement it
There is no way to do it portably, but it's possible to do it at Win32 level, see this example for one possible implementation.