Can a player refuse a draw in a position where materially he just cannot win.

Once your opponent has insufficient mating material you can claim a draw at any time, there's no accepting it or declining it if the winning side claims it, of course the real question is why would you want to draw when it's easily a win?

I can refuse a draw for any damn reason I want (likely that I'm ahead on time and have mating force left).
My situation was following: My opponent had bishop and king I had bishop, pawn and king but my pawn was in bad position so it was impossible to do something with it.
Because of that I offered a draw but he/she refused. In the end game was drawn because repeating moves.
Was it right (and polite) that my opponent didn't accept draw offer in such situation?
Thank you in advance for answer

In that kind of position in a sub-1300 game at fast time contols I'd say not accepting the draw was mildly impolite. Mildly because you can "force" the draw by putting your pawn en prise. But keep in mind that it's possible they just missed the draw offer. I've missed some when I'm short on time and concentrating hard on the position.
@5
"My opponent had bishop and king I had bishop, pawn and king but my pawn was in bad position so it was impossible to do something with it."
++ It seems there was a sequence of legal moves for your opponent to checkmate you with his bishop. When bishops are of opposite color, or when you promote your pawn to a knight, then there is a checkmate in a corner.

I wonder how the chess.com algorithm would score that position. Mate or draw? Because on this site, that material is an automatic draw. I hope the code checks for mate first!
Today it was similar situation again. I had pawn and king he had knight and king
My pawn was in c3 his king was in c4
He didn't take it and so it was 53 move dancing with the king until it ended with draw because repeated moves
update: After move 63 (when the dance began) his knight was in c5 my king in e5 and I continued with 64. king d6 and hoped he will take my pawn next...

I can refuse a draw for any damn reason I want (likely that I'm ahead on time and have mating force left).
I refuse your draw offer because I have a cat sitting on my head!
No draw for you!
Yes I know that losing because the time is running out is a part of the game but....
Game in question https://www.chess.com/game/139447138172
How in that position can opponent force me to leave from h8 with my king or take my pawn at b6?
Because of that I offered him/her a draw which he/she declined

Yes I know that losing because the time is running out is a part of the game but....
Game in question https://www.chess.com/game/139447138172
How in that position can opponent force me to leave from h8 with my king or take my pawn at b6?
Because of that I offered him/her a draw which he/she declined
The king can't be forced out of the corner but your opponent has suffered material on the board to win on time.
In a position like that, if you weren't experiencing lag, premoves and increments should have been able to either get a triple repetition of position or 50 moves with no captures or pawn moves to get a draw.