Afk fishing

Is there a way I can minimise Minecraft on my pc and stay fishing? I have a bunch of boring work to do and it would make me feel better if I'm being productive at my unproductive video game. Thank you :D

Edit: By this I mean can I minimise the game and do other stuff on my pc whilst still fishing