I don't know the peculiarities of Swedish airspace, but taking two countries whose airspace peculiarities I am familiar with.
- In the USA, you would likely be in class E, and to fly through / close to cloud makes you IFR, which requires a specific ATC clearance.
- In the UK, you would likely be in class G, just fly semicircular rule, log those few minutes as IFR, and nobody cares.
G