Password protection when double click on taskbar icon

Hi, I’m a new user and trying to get the password protection to work whenever I double click on icon at taskbar to bring up the app (or at lease there should be a timer to lock the app when on taskbar). It seems password protection only works when you close the app completely and reopen it. Any chance what I’m asking is possible ? Thanks.