To keep things relevant and an easier way for you to retain information would be: you putting your distracting thoughts in a parking lot and using your imagination to see how the info you’re learning, will apply to the real world.
Using your whole body to process information will help you understand why the info your learning will help you in the real world.
Find a way to engage yourself more in the activity that you’re doing that you think is boring.
90% of our success/happiness comes from our thinking/inside world while 10% comes from the outside world. Once you realize that, doing things that are productive but may seem boring are needed to do. So JUST DO IT.