sol[x_] := Module[{y},
NDSolveValue[{2.5 - (0.25 + 0.5 I) w[y] + (1. + 0.1 I) (w^\[Prime]\[Prime])[y] == 0,
w[1 + 0.1 Sin[0.1 x]] == 0, w[-1 - 0.1 Sin[0.1 x]] == 0},
w, {y, -1 - 0.1 Sin[0.1 x], 1 + 0.1 Sin[0.1 x]}]]
helper[x_, y_] :=
Piecewise[{{sol[x][y], -1 - 0.1 Sin[0.1 x] <= y <= 1 + 0.1 Sin[0.1 x]}}, 0]
dat = Re@Table[helper[x, y], {x, -10, 10, 1/10}, {y, -10, 10, 1/10}] // ListPlot3D