Unable to open taskbar application right on the application currently using

The application do open but on desktop (in background) and not above on the application i’m using at the time of clicking that icon . I want the application to open right in front of me as i click on the pinned icon but it opens on the desktop . Hope you understand

What applications are you talking about?